<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数组件</title>
    <script src="../react/react.development.js"></script>
    <script src="../react/react-dom.development.js"></script>
    <script src="../react/babel.min.js"></script>
</head>
<body>
<div id="root">

</div>
<script type="text/babel">
  // 最简单的组件
  function Comp (props) {
    console.log(props)
    return <h1>我是组件1</h1>
  }

  function Mini () {
    return <h3>我是组件2</h3>
  }

  ReactDOM.render(<Comp oa="1"></Comp>, document.getElementById('root'))
</script>
</body>
</html>
